from django.db import models


# Create your models here.
class WordsLibrary(models.Model):
    word = models.CharField(max_length=60, unique=True)  # 单词
    soundmark = models.CharField(max_length=60, null=True)  # 音标
    trans = models.CharField(max_length=200, null=True)  # 释义
    part_of_speech = models.CharField(max_length=30, null=True)  # 词性
    example_sentense = models.CharField(max_length=100, null=True)  # 例句
    USA_pronunciation = models.FileField(null=True, default='')  # 美式发音
    UK_pronunciation = models.FileField(null=True, default='')  # 英式发音
    word_root_or_affix = models.CharField(max_length=20, null=True)  # 词根/词缀
    synonymy = models.CharField(max_length=60, null=True)  # 同义词
    antonym = models.CharField(max_length=60, null=True)  # 反义词



